Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The hammer.js bug only happens if the value of eventType is 8. #4751

Closed
wants to merge 1 commit into from

Conversation

w-log
Copy link

@w-log w-log commented Jun 3, 2017

I am a developer studying the materialize css source. I noticed that during the creation of sidenav, Chrome experienced a drag error on newer browsers, and when the eventType value is 8, an odd value comes in. Share the source you have resolved as above.

@tomscholz
Copy link
Contributor

Which hammer.js bug do you mean?

#634, #1422

@DanielRuf
Copy link
Contributor

DanielRuf commented Jun 3, 2017

I think he generally means the removed line in the linked commit (and the error when a drag event occurs) even which has unexpected results and does not reliably filter the vertical scroll event.

@tomscholz
Copy link
Contributor

tomscholz commented Jun 10, 2017

@tawon2137 Can you please provide some kind of demo/codepen, which reproduces the original problem?

@w-log
Copy link
Author

w-log commented Jun 11, 2017

Https://github.com/Dogfalo/materialize/issues/4082
It was a pull request for the above issue,
Currently, the problem is solved, but I thought it would be better to check the value of eventType Value in hammer.js, rather than checking the coordinates of x and y.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants